From: Behnam Esfahbod Date: Fri, 1 Sep 2017 08:33:11 +0000 (-0700) Subject: [doc] Publish book to gh-pages X-Git-Tag: archive/raspbian/0.35.0-2+rpi1~3^2^2^2^2^2^2^2~22^2~6^2~69^2~2 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=102ab97f807f7238fc0dd96a1a137bb4d41eec10;p=cargo.git [doc] Publish book to gh-pages --- diff --git a/.travis.yml b/.travis.yml index 404d32804..b925208bc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -21,6 +21,8 @@ matrix: - env: TARGET=x86_64-unknown-linux-gnu ALT=i686-unknown-linux-gnu rust: nightly + install: + - cargo install mdbook script: - cargo test - cargo doc --no-deps @@ -31,7 +33,7 @@ matrix: [ $(uname -s) = Linux ] && pip install ghp-import --user && $HOME/.local/bin/ghp-import -n target/doc && - git push -qf https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages 2>&1 > /dev/null + git push -qf https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages 2>&1 >/dev/null exclude: - rust: stable diff --git a/src/ci/dox.sh b/src/ci/dox.sh index 5f65a31ad..c9417044f 100644 --- a/src/ci/dox.sh +++ b/src/ci/dox.sh @@ -26,3 +26,8 @@ for doc in $DOCS; do -o target/doc \ src/doc/$doc.md done + +# Temporary preview for mdBook docs +cd src/doc/book +$HOME/.cargo/bin/mdbook build --no-create --dest-dir ../../../target/doc/book +cd ../../../